# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=braces
pkgver=0.4
pkgrel=4
pkgdesc='A Bluetooth Tracking Utility.'
url='http://braces.shmoo.com/'
groups=('blackarch' 'blackarch-bluetooth')
license=('GPL')
depends=('php' 'mariadb')
arch=('any')
source=("http://braces.shmoo.com/blackhat-${pkgver//./}.tar.gz")
sha512sums=('8e9a5ff3287a66c7abf2d14d3bd88d13b12f1181')

package() {
  cd "blackhat-${pkgver//./}"

  install -Dm 755 "$pkgname/$pkgname.pl" "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 "$pkgname/README" "pkgdir/usr/share/$pkgname/README2"
  install -Dm 644 README "$pkgdir/usr/share/$pkgname/README"
  install -Dm 644 data.txt "$pkgdir/usr/share/$pkgname/data.txt"

  cp -r html maps "$pkgdir/usr/share/$pkgname/"
}

